﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using usedcartrade.Models;

namespace usedcartrade.DataAccessLayer
{
    public class UsedCarERPDAL:DbContext
    {
        public DbSet<User> users { get; set; }

        public DbSet<Car> cars { get; set; }
        public DbSet<SubscribeInfo> subscribeinfos { get; set; }


        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<User>().ToTable("TblUser");
            base.OnModelCreating(modelBuilder);
        }
    }
}
